package lab02.test09;

/**
 * Created by admin on 2017/10/19.
 */
public class Student {
    //属性：学号，班号，姓名，性别，年龄
    String sno;
    String classNo;
    String name;
    int gender;
    int age;
    //行为;“获得学号”、“获得班号”、“获得性别”、“获得姓名”、“获得年龄”
    String getSno() {
        return sno;
    }
    public String getClassNo() {
        return classNo;
    }
    public int getGender() {
        return gender;
    }
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public String toString( ){
        return sno+"|"+classNo+"|"+gender+"|"+name+"|"+age;
    }




    //构造函数
    Student(){ };
}

